from django.shortcuts import render_to_response, get_object_or_404
from django.template.context import RequestContext
from django.http import HttpResponseRedirect, Http404
from django.core.urlresolvers import reverse
from django.core.exceptions import ObjectDoesNotExist
from django.core.paginator import Paginator, InvalidPage
#from django.contrib.auth.decorators import login_required

#from ppcat.shell.settings import PHOTO_SIZE, PHOTO_THUMBNAIL_SIZE, PHOTO_NUM_PER_PAGE, ALBUM_NUM_PER_PAGE
from ppcat.shell.models import Photo, Comment, Album
#from ppcat.shell.forms import AlbumAddForm, AlbumEditForm, AlbumPhotoAddForm, PhotoAddForm, PhotoUploadEditForm, PhotoEditForm, CommentForm

def about(request):
	template = 'about.django.html'
	
	photoNumber = Photo.objects.count()
	albumNumber = Album.objects.count()
	commentNumber = Comment.objects.count()
	
	return render_to_response(template, {
		'photoNumber':photoNumber,
		'albumNumber':albumNumber,
		'commentNumber':commentNumber,
	}, context_instance=RequestContext(request))
	